﻿@model LMS.Models.Partial.LeftModel
@using LMS.Models.Partial

@{
    var menuModel = ViewData["leftMenuModel"] as LeftModel;
    var parentMenu = "";
}

<div class="rowBorder">
    @foreach (var item in menuModel.ChannelList)
    {
        if (parentMenu != item.AreaDescription)
        {
            parentMenu = item.AreaDescription;
            
        <div class="rowMenu">
            <div class="itemParentLeft">&nbsp;</div>
            <div class="itemParentRight">&nbsp; @item.AreaDescription</div>
        </div>
        }
        else
        {
        <div class="rowMenuItem">
            <div class="itemChildLeft">&nbsp;</div>
            <div class="itemChildRight">&nbsp; @item.ShortName</div>
        </div>
        }
    }
</div>
